// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__D58EC205_1515_496B_86EE_F3CE37FDCEF5__INCLUDED_)
#define AFX_STDAFX_H__D58EC205_1515_496B_86EE_F3CE37FDCEF5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define __AFXOCC_H__
#define _WIN32_WINNT 0x0500
#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
//#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#include <afxpriv.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <afxsock.h>		// MFC socket extensions
#include "cNotesSettingsPage.h"
#include "resource.h"
#ifndef MAXWORD
#define MAXWORD ((WORD) 0xffff)
#endif
#ifndef NOPRIORITY
#define NOPRIORITY			MAXWORD
#endif

#include "lncppapi.h"

typedef void (* ADSDLGPROC)(LPUNKNOWN, LPUNKNOWN*);

typedef struct tagADSIIF 
{
	const GUID    *pIID;
	LPTSTR		   szIf;
	ADSDLGPROC     pFn;	
} ADSIIF;


typedef struct tagADSERRMSG
{
	HRESULT    hr;
	LPCTSTR    pszError;
}ADSERRMSG;

#define MAKEADSENTRY(x)  &IID_##x, _T(#x) 
#define ADDADSERROR(x)   x, _T(#x)

#define RELEASE_INTERFACE(p) { IUnknown* pTmp = (IUnknown*)p;  p = NULL;  if (NULL != pTmp)   pTmp->Release(); }

#pragma warning(disable:4786 4146)

#import <msxml4.dll> rename("DOMDocument","DOMDocument2")
using namespace MSXML2;




//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__D58EC205_1515_496B_86EE_F3CE37FDCEF5__INCLUDED_)
